function [ Tasks ] = GenerateTaskListRandom( numberOfTasks, routeMatrix, upperBound, numberOfMachines )
%GENERATETASKLISTRANDOM Generates Task matrix with random execution times
%and given route
%   Given number of tasks and route matrix, function generates matrix of
%   tasks with random execution times

executionTimes = randi(upperBound,numberOfTasks,numberOfMachines);
Tasks = Task.empty(0);

for i= 1:numberOfTasks
    GeneratedTask = Task(routeMatrix, executionTimes(i,:));
    Tasks = cat(2,Tasks, GeneratedTask);
    
end

clearvars routeMatrix executionTimes numberOfTasks GeneratedTask i;
end

